package com.bwie.home.backstage.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.home.backstage.entity.CommunityEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.bwie.home.backstage.dao.BuylogDao;
import com.bwie.home.backstage.entity.BuylogEntity;
import com.bwie.home.backstage.service.BuylogService;


@Service("buylogService")
public class BuylogServiceImpl extends ServiceImpl<BuylogDao, BuylogEntity> implements BuylogService {


    @Autowired
    private BuylogDao buylogDao;

    @Override
    public IPage<BuylogEntity> getList(int page, int limit, CommunityEntity community) {
        Page<BuylogEntity> pa = new Page<>(page,limit);
        return buylogDao.getList(pa,community);
    }
}